package com.mmall.dao;

import com.mmall.pojo.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Product record);

    Product selectByPrimaryKey(Integer id);

    List<Product> selectAll();

    int updateByPrimaryKey(Product record);

    List<Product>  selectProductByKeywordsIds(@Param("keyword") String keyword, @Param("categoryIdList") List<Integer> categoryIdList);

    int  updateSelective(Product product);

     List<Product> searchProduct(@Param("productId") Integer productId,@Param("productName") String productName);
}